package com.atguigu.springcloud.payment.service;

import com.atguigu.springcloud.framework.common.api.ApiResult;
import com.atguigu.springcloud.framework.core.bean.RequestDetail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lenovo
 * @version 1.0
 * @date 2021/1/18 14:24
 */
@FeignClient(value = "nacos-sentinel-provider",fallback = PaymentFeginFallBackService.class )
public interface PaymentFeginService {

    @GetMapping("payment/nacos/{id}")
    public ApiResult<RequestDetail> getPayment(@PathVariable("id") Integer id);

}
